﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSL.Utility;

namespace TSL.AjaxResult
{
    /// <summary>
    /// AjaxResult 的摘要说明
    /// </summary>
    [Serializable]
    public class UserResult : Results
    {
        public UserResult()
        {
            this.Parameter = "";
            this.Error = "";
            this.Result = 0;
        }

        /// <summary>
        /// 成功简化模式
        /// </summary>
        public UserResult(string pParameter)
        {
            this.Parameter = pParameter;
            this.Error = "";
            this.Result = 0;
        }

        /// <summary>
        /// 错误简化模式
        /// </summary>
        public UserResult(int result, string error)
        {
            this.Parameter = "";
            this.Error = error;
            this.Result = result;
        }
    }
}
